<?php 
    require_once '../../DAO/DaoCadastrarUsuario.php';    
    $validaAcesso = new DaoCadastrarUsuario();
    $validaAcesso->validaAcesso();
    require_once '../../Controller/Controller.Alterar.Email.php';
?>
<?php require 'cabecalho.php'; ?>
    <div id="miolo">
        <div id="categorias">
            <?php require_once 'menu_categorias.php'; ?>
        </div>	
            <div id="conteudo2">
                <div class="containers">
                    <form id="altersenha" name="alterarsenha" action="<?php $PHP_SELF; ?>" method="POST">
                        <p class="titulo-cadastro">[ Alterar E-mail ]</p>                            
                            <table>
                                <tr>
                                    <th width="201" align="left">
                                        <label>E-mail atual:<font color="BE1E2D"><b>*</b></font></label>
                                    </th>
                                    <td width="1012" align="left">
                                        <input type="text" name="emailantiga" size="20" maxlength="40" onFocus="fundotextfiel(this,1)" onBlur="fundotextfiel(this,0)"/>
                                        <?php if (isset($erro['emailantiga'])) echo $erro['emailantiga']; ?>
                                    </td>
                                </tr>
                                <tr align="left">
                                    <th width="201" align="left">
                                        <label>Novo e-mail:<font color="BE1E2D"><b>*</b> </font></label>
                                    </th>
                                    <td width="1012" align="left">
                                        <input type="text" name="novoemail" size="20" maxlength="40" onFocus="fundotextfiel(this,1)" onBlur="fundotextfiel(this,0)"/>
                                        <?php if (isset($erro['novoemail'])) echo $erro['novoemail']; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="201" align="left">
                                        <label>Confirmar:<font color="BE1E2D"><b>*</b> </font></label>
                                    </th>
                                    <td width="1012" align="left">
                                        <input type="text" name="novoemail2" size="25" maxlength="25" onFocus="fundotextfiel(this,1)" onBlur"fundotextfiel(this,0)"/>
                                           <?php if (isset($erro['novoemail2'])) echo $erro['novoemail2']; ?>
                                    </td>
                                </tr>
                            </table>                
                            <p><b><font color="BE1E2D"><b>*</b></font></b> Campos de preenchimento obrigat&oacute;rio.</p>
                        <br>
                        <div align="center">
                            <tr>
                                <td>
                                    <input type="submit" value="Atualizar" class="bt_buscar"/>
                                    <a href="usuario-configuracoes.php"><input type="button" value="Voltar" class="bt_buscar"/></a>                       
                                </td>
                            </tr> 
                        </div>   
                    </form> 						
                </div>	
            </div>
	</div>
	<div id="rodape">
		<div id="busca">
			<form>
				Buscar em 
				<select name="buscaTipo">
					<option value="o"></option>
					<option value="autor">Autor</option>
					<option value="titulo">Titulo</option>
					<option value="">Editora</option>			
				</select>
				<input type="text" name="buscador" class="cx_buscar"/>
                                <input type="submit" value="Buscar" class="bt_buscar"/>		
			</form>	
		</div>
		
	</div>
</div>
</body>

</html>